<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
 <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
　<title>机构信息维护</title>
　 <link rel="stylesheet" th:href="@{/layui/2.3.0/css/layui.css}" media="all">
  <link rel="stylesheet" th:href="@{/layui/2.3.0/style/admin.css}" media="all">
<style>
	.layui-input-block{
	width:500px;
	}
	</style>
  </head>
<body>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>机构信息维护</legend>
 </fieldset>
<form class="layui-form" action="./unit/" id="postForm" method="post">
  <input type="number" style="display:none" id="sid" sid" th:value="${unit.id}" >
  <input type="number" style="display:none" name="unit.fid" th:value="${unit.fid}">
  <input type="number" style="display:none" name="unit.seq" th:value="${unit.seq}">
  <input type="number" style="display:none" name="unit.meta" th:value="${unit.meta}">
  <div class="layui-form-item">
    <label class="layui-form-label">机构名</label>
    <div class="layui-input-block">
      <input type="text" name="unit.text" readOnly lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.text}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">社会统一信用代码</label>
    <div class="layui-input-block">
      <input type="text" name="unit.creditCode"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.creditCode}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">开户行</label>
    <div class="layui-input-block">
      <input type="text" name="unit.acctBank"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.acctBank}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">收款账号</label>
    <div class="layui-input-block">
      <input type="text" name="unit.acctNo"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.acctNo}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">联系人姓名</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.contactName"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.contactName}">
    </div>
  </div>
   
   <div class="layui-form-item">
    <label class="layui-form-label">联系人手机号</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.contactMobile"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.contactMobile}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">固定电话</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.phoneNo"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.phoneNo}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">传真</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.contactFax"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.contactFax}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">联系地址</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.location"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.location}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">注册地址</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.regAddr"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.regAddr}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">法人姓名</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.repName"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.repName}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">法人身份证号</label>
    <div class="layui-input-block">
      <input type="text" name="unit.contactInfo.repIdNo"  lay-verify="required" autocomplete="off" class="layui-input" th:value="${unit.contactInfo.repIdNo}">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block" style="width:300px;">
      <button type="button" style="background:#F16622;margin-top:40px;" class="layui-btn layui-btn-normal" id="addBtn">确认</button>
	</div>
  </div>
</form>
<script th:src="@{/layui/2.3.0/layui.js}"></script>
<script >
  var prefix="..",errorMsg='${errorMsg}';
  layui.config({
	    base: '../layui/2.3.0/' //静态资源所在路径
	  }).extend({
	    index: 'lib/index' //主入口模块
	  }).use(['form','laydate','upload'],function(){
	  var form = layui.form
	  ,layer = layui.layer
	  ,laydate = layui.laydate,
	  $=layui.jquery;
	  if(errorMsg){
		  layer.msg(errorMsg);
	  }
	  var sid=$("#sid").val();
	 
	  laydate.render({
		  type:'datetime',
		    elem: '#apartySignTime'
		  });
	  laydate.render({
		  type:'datetime',
		    elem: '#bpartySignTime'
		  });
	  
	  $("#addBtn").click(function(){
		  $("#postForm").submit();
	  });
});
  </script>
</body>
</html>



